import 'package:flutter/material.dart';
import 'package:get/get.dart';

import 'text_button_page.dart';

class TextButton2 extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return TextButton(
        style: TextButton.styleFrom(
            backgroundColor: Colors.transparent,
            side: BorderSide(color: Colors.blueAccent),
            padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 0)),
        onPressed: () {
          Get.dialog(dialog('TextButton2'));
        },
        child: Text(
          '按钮2',
          style: TextStyle(color: Colors.blueAccent),
        ));
  }
}